package com.pzh.assignment.common.bean.vo;

import com.pzh.assignment.entity.Program;
import lombok.Data;

@Data
public class ProgramDataVO {
    private Integer id;

    private Integer courseId;

    private Integer gradeId;

    private Integer majorId;

    private Float experimental;

    private Float theoretical;

    private Float credit;

    private Integer status;

    private Integer method;

    private Integer term;

    public static ProgramDataVO valueOf(Program program) {
        ProgramDataVO vo = new ProgramDataVO();
        vo.setId(program.getId());
        vo.setCourseId(program.getCourseId());
        vo.setGradeId(program.getGradeId());
        vo.setMajorId(program.getMajorId());
        vo.setExperimental(program.getExperimental());
        vo.setTheoretical(program.getTheoretical());
        vo.setCredit(program.getCredit());
        vo.setStatus(program.getStatus());
        vo.setMethod(program.getMethod());
        vo.setTerm(program.getTerm());
        return vo;
    }
}
